package com.star.util;

/**
 * @Classname CodeUtil
 * @Author Star
 * @Date 2021/4/29 - 10:09
 * @Description 获取时间戳 验证码
 */
public class CodeUtil {
    public static String timeStampCodeType(int length) throws InterruptedException {
        Thread.sleep(5);
        Long time = System.currentTimeMillis();
        String str = time.toString();
        return str.substring(str.length()-length);
    }
}
